package com.clhbolg.event;

import com.clhbolg.domain.Article;
import com.clhbolg.enums.OperationEnum;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * @Author cailinhu
 * @Description 文章操作监听器
 * @Date 2023/3/14 14:44
 * @Version 1.0
 */
@Getter
public class ArticleEvent extends ApplicationEvent {
    private OperationEnum operationEnum;

    public ArticleEvent(Article article, OperationEnum operationEnum) {
        super(article);
        this.operationEnum=operationEnum;
    }

}
